#include <QtWidgets>
#include <QApplication>
#include <QPushButton>
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QPushButton *button = new QPushButton("quit");

    QObject::connect(button, SIGNAL(clicked()), &a, SLOT(quit()));

    button->show();

    qDebug()<< "test";

    return a.exec();
}
